package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-06-18
 * Time: 16:30
 */
public class Fish extends Animal implements ISwimming{
    public Fish(String name, int age){
        super(name, age);
    }

    public void swim(){
        System.out.println(this.name + "在游泳...");
    }

    public void eat(){
        System.out.println(this.name + "吃鱼粮...");
    }

}
